#define _CRT_SECURE_NO_WARNINGS 1
#include "game.h"
void ko(char br[][COL], int row, int col)
{
	int i, j;
	for (i = 0; i < row; i++)
		for (j = 0; j < col; j++)
			br[i][j] = ' ';

}
void in( char br[][COL],int row,int col)
{
	int i, j;
	for (i = 0; i < row; i++)
	{
		for (j = 0; j < col; j++)
		{
			printf(" %c ", br[i][j]);
			if (j < col - 1)
				printf("|");
		}
		printf("\n");
	
		
			if (i < row - 1)
				for (j = 0; j < row; j++)
				{
					printf("---");
					if (j < row - 1)
						printf("|");
				}
			printf("\n");
		
	}
}
void man(int num[][COL],char br[][COL], int row, int col)
{
	int x=0;
	scanf("%d", &x);
	for (int i = 0; i < row; i++)
		for (int j = 0; j < col; j++)
			if (num[i][j] == x)
			{
				br[i][j] = '*';
			   in( br,  ROW,  COL);
			}
}
void cpt(int num[][COL], char br[][COL], int row, int col)
{
	int x = 0,y=0;
	int a = 0;
	while (1)
	{
		x = rand() % row;
		y = rand() % col;
		if (br[x][y] == ' ')
		{
			br[x][y] = '#';
			in(br, row, col);
			break;
		}
	}
}